typedef HRESULT (WINAPI *TD3DXCreateTexture)(
  _In_   LPDIRECT3DDEVICE9 pDevice,
  _In_   UINT Width,
  _In_   UINT Height,
  _In_   UINT MipLevels,
  _In_   DWORD Usage,
  _In_   D3DFORMAT Format,
  _In_   D3DPOOL Pool,
  _Out_  LPDIRECT3DTEXTURE9 *ppTexture
);

TD3DXCreateTexture OldD3DXCreateTexture;

DllExport HRESULT cc D3DXCreateTexture(
  _In_   LPDIRECT3DDEVICE9 pDevice,
  _In_   UINT Width,
  _In_   UINT Height,
  _In_   UINT MipLevels,
  _In_   DWORD Usage,
  _In_   D3DFORMAT Format,
  _In_   D3DPOOL Pool,
  _Out_  LPDIRECT3DTEXTURE9 *ppTexture
)
{
	return OldD3DXCreateTexture (pDevice, Width, Height, MipLevels,Usage,Format,Pool,ppTexture);
}
